Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement SourceHub ACP #2657

Merged
merged 28 commits into from
Jul 16, 2024

Conversation

AndrewSisley
Copy link
Contributor

@AndrewSisley AndrewSisley commented May 30, 2024

Relevant issue(s)

Resolves #2836

Description

Implements SourceHub ACP.

Whilst the time out for a single package has been increased, the CI cost of the new jobs remains about the same as when running with source-hub acp, the integration test harness will skip all non-acp tests.

Warnings

This PR introduces a new dependency to be manually installed by anyone running the tests locally. It is noted in the contributors readme. It can be removed once a SourceHub test harness thing has been built allowing us to stop using the SourceHub CLI in our tests.

@AndrewSisley AndrewSisley added feature New feature or request area/auth Related to the authorization and authentication of data labels May 30, 2024
@AndrewSisley AndrewSisley added this to the DefraDB v0.12 milestone May 30, 2024
@AndrewSisley AndrewSisley self-assigned this May 30, 2024
@AndrewSisley AndrewSisley force-pushed the 2366-source-hub branch 9 times, most recently from e957409 to 4005996 Compare May 30, 2024 21:39
Copy link

codecov bot commented May 30, 2024

Codecov Report

Attention: Patch coverage is 76.84564% with 69 lines in your changes missing coverage. Please review.

Project coverage is 79.13%. Comparing base (ff03efe) to head (fdd5a25).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2657      +/-   ##
===========================================
- Coverage    79.21%   79.13%   -0.08%     
===========================================
  Files          321      323       +2     
  Lines        24281    24499     +218     
===========================================
+ Hits         19233    19387     +154     
- Misses        3667     3708      +41     
- Partials      1381     1404      +23     
Flag Coverage Δ
all-tests 79.13% <76.85%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
acp/acp_local.go 97.27% <100.00%> (ø)
acp/identity/errors.go 100.00% <ø> (ø)
acp/identity/generate.go 69.23% <100.00%> (+9.23%) ⬆️
cli/config.go 83.67% <ø> (ø)
cli/root.go 97.62% <100.00%> (+0.15%) ⬆️
cli/utils.go 74.49% <100.00%> (+3.23%) ⬆️
http/http_client.go 76.74% <100.00%> (+5.91%) ⬆️
internal/db/db.go 58.93% <100.00%> (ø)
internal/db/permission/register.go 100.00% <100.00%> (ø)
node/errors.go 0.00% <ø> (ø)
... and 7 more

... and 12 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ff03efe...fdd5a25. Read the comment docs.

@AndrewSisley AndrewSisley force-pushed the 2366-source-hub branch 15 times, most recently from 15f6597 to d6d6417 Compare May 31, 2024 12:46
@AndrewSisley AndrewSisley force-pushed the 2366-source-hub branch 25 times, most recently from 9463779 to c1877ab Compare July 16, 2024 19:39
@AndrewSisley AndrewSisley merged commit fe9fae6 into sourcenetwork:develop Jul 16, 2024
41 of 42 checks passed
@AndrewSisley AndrewSisley deleted the 2366-source-hub branch July 16, 2024 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/acp Related to the acp (access control) system area/auth Related to the authorization and authentication of data feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Defra SourceHub ACP module
6 participants